package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: skyler
 * @Date: 2021/11/28 15:38
 */
@Data
public class Question {

    private Integer id;

    @NotNull
    @ApiModelProperty("问题内容")
    private String questionName;

    @NotNull
    private boolean type;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String createTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String updateTime;


    @NotNull
    private List<Choice> answers;

}
